package com.javasm.crm.service.aftersale.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.javasm.crm.domin.entity.aftersale.Repairlocation;
import com.javasm.crm.mapper.aftersale.RepairlocationMapper;
import com.javasm.crm.service.aftersale.IRepairlocationService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lirui
 * @since 2021-07-17
 */
@Service
public class RepairlocationServiceImpl extends ServiceImpl<RepairlocationMapper, Repairlocation> implements IRepairlocationService {

    @Override
    public List<Repairlocation> getRepairInfo(Integer locationId) {

        QueryWrapper<Repairlocation> queryWrapper = new QueryWrapper<>();
        LambdaQueryWrapper<Repairlocation> lambda = queryWrapper.lambda();

        lambda.eq(Repairlocation::getLocationId, locationId);

        List<Repairlocation> list = list(queryWrapper);

        return list;
    }
}
